package ee.maoinvest.backend.model.dao;

import java.util.List;

import ee.maoinvest.backend.model.data.TempRelationBetweenSubstationAndMainElectricityMeter;

public interface TempRelationBetweenSubstationAndMainElectricityMeterDAO 
{
	//basic CRUD
	public int insertTempRelationBetweenSubstationAndMainElectricityMeter(
			TempRelationBetweenSubstationAndMainElectricityMeter tempRelationBetweenSubstationAndMainElectricityMeter);
	public TempRelationBetweenSubstationAndMainElectricityMeter getTempRelationBetweenSubstationAndMainElectricityMeterByID(
			int tempRelationBetweenSubstationAndMainElectricityMeterID);
	public List<TempRelationBetweenSubstationAndMainElectricityMeter> getAllTempRelationsBetweenSubstationsAndMainElectricityMeters();
	public int updateTempRelationBetweenSubstationAndMainElectricityMeter(
			TempRelationBetweenSubstationAndMainElectricityMeter updatedTempRelationBetweenSubstationAndMainElectricityMeter);
	public int deleteTempRelationBetweenSubstationAndMainElectricityMeter(
			int tempRelationBetweenSubstationAndMainElectricityMeterID);
	
	public TempRelationBetweenSubstationAndMainElectricityMeter getTempRelationBetweenSubstationAndMainElectricityMeterObjectByMainMeterIDAndDateRelationEndedIsNull(
			int substationMainElectricityMeterID);
}
